package com.plan.dao.mapper.card;

import com.plan.controller.card.response.AwardProductListRes;
import com.plan.entity.card.AwardProduct;

import java.util.List;

/**
 * 抽奖商品
 *
 * @author zcl
 */
public interface AwardProductMapper {

    Long insert(AwardProduct product);

    int update(AwardProduct product);

    int delete(Long teamId, Long productId);

    AwardProduct selectOneById(Long teamId, Long productId);

    Integer getExistRateByTeamId(Long teamId);

    List<AwardProductListRes> getAwardProductList(Long teamId);
}
